package com.ruoyi.mymod.service.impl;

import com.ruoyi.mymod.service.IFeedAccessService;
import com.ruoyi.mymod.utils.Dbutil.Qp;

import org.springframework.stereotype.Service;

@Service
public class FeedAccessServiceImpl implements IFeedAccessService {

    @Override
    public int accessRecord(   String usercode,String acode,Integer alevel,String fcode,Integer flevel) {
        Qp qp=null;
        int i=0;
        try {
             qp = new Qp();
            i = qp
                    .setSqlStr("insert into ctcnfd.ai_log (ldate,username,log) values(sysdate,?,?)")
                    .setP(usercode, acode + ":" + alevel + "," + fcode + ":" + flevel)
                    .exeP();
        }finally {
            qp.closeConn();
        }


        return i;
    }

}
